<?php
/**
 * Created by PhpStorm.
 * User: Eugene
 * Date: 19.11.13
 * Time: 17:55
 */
?>

<?php
if(!isset($_GET['page'])){
	$page = 'main';
}
else{
	$page = addslashes(strip_tags(trim($_GET['page'])));
}
?>

<!DOCTYPE html>
<html>
<head>
	<script src="//api-maps.yandex.ru/2.0/?load=package.full&lang=ru-RU" type="text/javascript"></script>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<meta name="description" content="<?php echo $meta_d; ?>" />
<meta name="keywords" content="<?php echo $meta_kw; ?>" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div class="bg-pattern">
	<div id="page">
		<div id="header">
		</div>
		<div id='cssmenu'>
			<ul>
				<li class='active'><a href='index.php'><span>Главная</span></a></li>
				<li class='has-sub'><a href='#'><span>Клубы</span></a>
					<ul>
						<li><a href='#'><span>Поиск</span></a></li>
						<li><a href='/index.php?page=map'><span>На карте</span></a></li>
					</ul>
				</li>
				<li class='has-sub'><a href='#'><span>Цены</span></a>
					<ul>
						<li><a href='#'><span>Все</span></a></li>
						<li class='last'><a href='#'><span>Акции</span></a></li>
					</ul>
				</li>
				<li class='has-sub'><a href='#'><span>Статьи</span></a>
				<li class='last'><a href='/index.php?page=about'><span>О нас</span></a></li>
			</ul>
		</div>
		<div id="menu">
		</div>
		<div id="content">
			<?php
			include ('/pages/'.$page.'.php');
			?>
		</div>
		<div class="clear"></div>
		<div id="footer">
			<p>&copy; FitnessMap 2013</br>Made by Eugene Tsvetkov</br>Idea: Dmitry Pyataev</p>
		</div>
	</div>
</div>
</body>
</html>
